from selenium.webdriver.common.by import By
class EvaluationMoralEducateLocator():
    # 登录标签
    login_click = (By.XPATH, '//*[@id="nav-userinfo"]/li')
    username_loc = (By.XPATH, '//input[@placeholder="请输入用户名"]')
    password_loc = (By.XPATH, '//input[@placeholder="请输入密码"]')
    captcha = (By.XPATH, '//input[@placeholder="验证码"]')
    captcha_img = (By.XPATH, '//div[contains(@class, "login-captcha")]/img')
    # 登录按钮
    loginsbt = (By.XPATH, '//button[text()="登录"]')
    # 我的工作台
    workbench_loc = (By.LINK_TEXT, '我的工作台')
    # 取消修改密码按钮
    # cancel_password_change = (By.XPATH, '//div[@aria-label="修改密码"]/div[3]/span/button[1]/span')

    # 德育评价系统
    evaluation = (By.XPATH, '//div[text()="德育评价"]')

    # 德育评价菜单
    evaluation_menu = (By.XPATH, '//ul[@role="menubar"]/div[3]/a/li/span')

    # 手动评价按钮
    manual_evaluation = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr[1]/td[12]/div/button[1]/span')

    # 德育评价标签
    menu_label = (By.XPATH, '//span[@class="no-redirect"]')

    # 年级下拉框
    grade_box = (By.CSS_SELECTOR, 'input[placeholder="请选择年级"]')

    # 一年级
    grade1 = (By.XPATH, '//div[contains(@x-placement, "-start")]//span[text()="二年级"]')

    # 四年级
    grade4 = (By.XPATH, '//div[contains(@x-placement, "-start")]//span[text()="五年级"]')

    # 班级下拉框
    class_box = (By.CSS_SELECTOR, 'input[placeholder="请选择班级"]')

    # 1班
    class1 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div/ul/li[1]')

    # 姓名输入框
    input_name = (By.CSS_SELECTOR, 'input[placeholder="请输入学生姓名搜索"]')

    # 评价指标下拉框
    eval_index = (By.XPATH, '//div[@aria-label="手动评价"]/div[2]/form/div[1]/div/div/div[1]/input')

    # 德
    index1 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[1]/div[1]/ul/li[1]')
    tip1 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[2]/div[1]/ul/li[1]')
    tip2 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[2]/div[1]/ul/li[2]')
    tip3 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[2]/div[1]/ul/li[3]')
    tip4 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[2]/div[1]/ul/li[4]')
    tip5 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[2]/div[1]/ul/li[5]')

    # 智
    index2 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[1]/div[1]/ul/li[2]')

    # 体
    index3 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[1]/div[1]/ul/li[3]')

    # 美
    index4 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[1]/div[1]/ul/li[4]')

    # 劳
    index5 = (By.XPATH, '//div[contains(@x-placement, "-start")]/div[1]/div[1]/div[1]/ul/li[5]')

    # +分值
    add_score = (By.XPATH, '//input[@aria-label="分值"]')

    # 确定按钮
    sure = (By.XPATH, '//div[@class="el-dialog__footer"]/span/button[2]')

    # 列表第一个姓名标签
    list1_name = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr[1]/td[2]/div')

    # 列表第一个年级标签
    list1_grade = (By.XPATH, '//div[@class="leave_school"]/div[2]/div/div[1]/div[3]/table/tbody/tr[1]/td[3]/div')







